import Vue from 'vue'
import Router from 'vue-router'
import IndexPage from '../views/index'
import DetailPage from '../views/detail'
import DetailAnPage from '../views/detail/analysis'
import DetailCouPage from '../views/detail/count'
import DetailForPage from '../views/detail/forecast'
import DetailPubPage from '../views/detail/publish'


Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      component: IndexPage
    },
    {
      path:'/',redirect: '/'
    },
    {
      path: '/detail',
      component: DetailPage,
      children:[
          {
            path:'/detail/analysis',
            component:DetailAnPage
          },
        {
          path:'/detail/count',
          component:DetailCouPage
        },
        {
          path:'/detail/forecast',
          component:DetailForPage
        },
        {
          path:'/detail/publish',
          component:DetailPubPage
        }
      ]
    }

  ]
})
